<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 1、创建一个空对象, 同过new对象方式创建
      var person = new Object();
      person.name = "培培";
      person.age = 22;
      person.height = "165";
      person.like = function () {
        console.log("爱好180以上的长得好看的小哥哥");
      };
      console.log(person);
    </script>
  </body>
</html>
